<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 */
/**
 * Data model for table "comment_ref_project"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 *
 * @property-read mixed CommentId
 * @property-read mixed ProjectId
 */
abstract class BaseCommentRefProject extends BaseRecord
{
    const TABLE_NAME = "comment_ref_project";

    public function __construct()
    {
        parent::__construct(self::TABLE_NAME);
    }

    protected function initFields()
    {
        $this->hasColumn('comment_id', 'P:int(4)');
        $this->hasColumn('project_id', 'P:int(4)');
    }

    public function initRelations()
    {
    }

    public function getById($id)
    {
        return parent::getById($id, 'CommentRefProject');
    }

    public function getByParams( $params, $type = ORMRecord::ONE_RECORD, $limit = null )
    {
        return parent::getByParams( $params, $type, $limit, 'CommentRefProject');
    }

    public function getAll( $limit = null )
    {
        return parent::getAll( $limit, 'CommentRefProject' );
    }
}